package cate.game.activity.specall;

import cate.common.table.activity.specall.row.SpeCallGroupRow;
import cate.common.util.random.RWItem;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass(value = "独立卡池召唤的数据结构")
public class SpeCallItem implements RWItem {

    public SpeCallItem() {
    }

    @NoteField("编号")
    public int id;

    @NoteField("权重")
    public double weight;

    public SpeCallItem(SpeCallGroupRow row) {
        this.id = row.id;
        this.weight = row.weight;
    }

    public SpeCallItem(int id, double weight) {
        this.id = id;
        this.weight = weight;
    }

    @Override
    public double getWeight() {
        return weight;
    }

}
